<? 
$RootPath = substr(dirname(__FILE__),0,-5);//cut off "/conf",because of windows and linux use diffrent slash
$Doc2Rel =  str_replace($_SERVER['DOCUMENT_ROOT'],
					'',str_replace(DIRECTORY_SEPARATOR,'/',$RootPath));
define(THIS_SRV_URL,'http://'.$_SERVER['SERVER_NAME'].$Doc2Rel);

//Absolute local DIR info
define(ROOT_DIR,		$RootPath);
define(LIBS_DIR,		ROOT_DIR .DIRECTORY_SEPARATOR. "libs");
define(MODU_DIR,		ROOT_DIR .DIRECTORY_SEPARATOR. "pmod");
define(PEAR_DIR,		LIBS_DIR .DIRECTORY_SEPARATOR. "PEAR");
define(MY_SMARTY_DIR,	LIBS_DIR .DIRECTORY_SEPARATOR. "Smarty");
define(JS_URL,			THIS_SRV_URL.'/libs/js/');

//define(SMARTY_DIR,$SmartyPath.DIRECTORY_SEPARATOR);
define(G_TEMPLATE_CACHE_DIR,	ROOT_DIR .DIRECTORY_SEPARATOR."cache");
define(G_TEMPLATE_COMPILE_DIR,	ROOT_DIR .DIRECTORY_SEPARATOR."cache".DIRECTORY_SEPARATOR."template_c");
define(G_TEMPLATE_CONF_DIR,		ROOT_DIR .DIRECTORY_SEPARATOR."conf");
define(G_TEMPLATE_DIR,			ROOT_DIR .DIRECTORY_SEPARATOR."design");

ini_set("include_path",".".PATH_SEPARATOR. LIBS_DIR .PATH_SEPARATOR. PEAR_DIR .PATH_SEPARATOR.MY_SMARTY_DIR); 
//ini_set("include_path",ini_get('include_path').":$LibsPath:$PEARPath");

//DB Info
//$dsn = '{dbtype}://{user}:{passwd}@{dbhost}/{dbname}';
$GLOBALS['g_dsn'] = 'mysql://root:abc123@localhost/nh2007';

define('DB_NAME', 'wordpress');    // The name of the database
define('DB_USER', 'root');     // Your MySQL username
define('DB_PASSWORD', 'abc123'); // ...and password
define('DB_HOST', 'localhost');    // 99% chance you won't need to change this value
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
?>